package com.zit.presentation.action;

import java.util.List;

import com.zit.entity.Term;
import com.zit.service.TermService;

/**
 * 功能：学期管理
 * @author 唐美兰
 * createTime  2013-12-3
 */
public class TermAction extends BaseAction {
	
	private TermService termService = new TermService();
	
	//查询学期集合
	private List<Term> terms;
	
	//传入需要添加或修改的专业对象
	private Term termss;
	
	/**
	 * 功能：添加学期
	 * @return
	 */
	public String addTerm(){
		termService.addterm(termss);
		return "add";
	}
	
	/**
	 * 功能：查询学期
	 * @return
	 */
	public String showTerm(){
		terms=termService.showterm();
		return "show";
	}

	public List<Term> getTerms() {
		return terms;
	}

	public void setTerms(List<Term> terms) {
		this.terms = terms;
	}

	public Term getTermss() {
		return termss;
	}

	public void setTermss(Term termss) {
		this.termss = termss;
	}

	
}
